package com.suntianci.stock.mapper;

import com.suntianci.stock.pojo.domain.UserInfoDomain;
import com.suntianci.stock.pojo.entity.SysUser;
import com.suntianci.stock.pojo.po.query.UserInfoQueryPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 孙天赐
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2024-12-24 15:39:27
* @Entity com.suntianci.stock.pojo.entity.SysUser
*/
public interface SysUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser findUserInfoByUserName(String userName);

    /**
     * 根据指定条件动态查询用户信息
     * @param userInfoQueryPo
     * @return
     */
    List<UserInfoDomain> findAllUsersInfo(UserInfoQueryPo userInfoQueryPo);

    /**
     * 批量删除用户信息
     * @param userIds
     * @return
     */
    int batchDeleteUser(@Param("userIds") List<Long> userIds);

}
